package com.tjp.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tjp.common.utils.PageUtils;
import com.tjp.mall.product.entity.CategoryEntity;
import com.tjp.mall.product.vo.Catalog2VO;

import java.util.List;
import java.util.Map;

/**
 * ??Ʒ???????
 *
 * @author tjp
 * @email tjpcorner@126.com
 * @date 2022-07-20 12:35:45
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> queryPageWithTree(Map<String, Object> params);

    void removeCategoryByIds(List<Long> asList);

    Long[] findCatelogPath(Long catelogId);

    void updateDetail(CategoryEntity category);

    List<CategoryEntity> getLeve1Category();

    Map<String, List<Catalog2VO>> getCatalog2JSON();
}

